package com.maxd.respository.cash;


import com.maxd.model.CashOut;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface CashJpaRepository extends JpaRepository<CashOut, Long> {

    //根据提现列表
    Page<CashOut> findByMerchantId(Pageable pageable, Long merchantId);

    //条件查询带分页
    Page<CashOut> findAll(Specification<CashOut> specification, Pageable pageable);
}
